<div id="announcement_event">
	
	<span>
		<h2><?= $event['Event']['title'];?></h2>
		
		<span>
			<?= $html->link(__('Go to content >>', true), 'view/' . $event['Event']['id'], null, null, false); ?>
		</span>
	</span>
	<span>
		<h4>
			<?= date('F j, Y', strtotime($event['Event']['start_date'])) . ' to ' . date('F j, Y', strtotime($event['Event']['end_date'])); ?>
			| <?= $eventType['EventType']['title']; ?>
			| <?= $html->link(__($season['Season']['season_name'], true), array('controller'=>'seasons', 'action'=>'view',$event['Event']['season_id']), null,null, false); ?>
		</h4>
	</span>
	<div id="announcement_body">
		<?= str_replace("\n", "<br/>", $event['Event']['announcement_body']); ?>
	</div>
	<div id = "fees">
		<h2><?= 'Fees';?></h2>
		<?
			$for_members = $event['Event']['member_price'];
			$for_guest = $event['Event']['guest_price'];
			if($for_members <=0 && $for_guest <=0)
				echo 'Free for members and non-members';
				
			else if($for_members <=0 && $for_guest >0){
				echo '<ul> <li> Free for members </li>';
				echo '<li> For non members : ' . $for_guest . ' LE.</li></ul>';
			}
			
			else if($for_members >0 && $for_guest >0){
				echo '<ul> <li> For members :' . $for_members.' LE.</li>';
				echo '<li> For non members : ' . $for_guest. ' LE.</li></ul>';
			}
		?>
	</div>
	
	<div class = "actions">
	<ul>
		<li>
		 <?php
		    if(!$attendee)  
			   echo $html->link(__('Register',true),array('controller'=>'events','action'=>'register',$event['Event']['id']),null,null,false);
			else if ($attendee['EventAttendee']['status']) {
				echo '<b>Confirmed</b>';
			}
			else {
				echo '<b>Pending</b>';
			}
		 ?>
		</li>
		<li>
		<?php
			if ($event['Event']['attendance_manager_id'] == $user_id || $accessArray['CreateEvent']) {
				echo $html->link(__('Attendence Manager',true),array('controller'=>'eventAttendees','action'=>'view',$event['Event']['id']),null,null,false);
				}
		?>
		</li>
		
		
		<?php
			if ($accessArray['DeleteEvent']) {
				echo '<li>' . $html->link(__('Delete',true),array('controller'=>'events','action'=>'delete',$event['Event']['id'], $event['Event']['season_id']),null,null,false). '</li>';
				if(! $event['Event']['is_closed'])
					echo '<li>' . $html->link(__('Close',true),array('controller'=>'events','action'=>'close',$event['Event']['id']),null,null,false). '</li>';
				else
					echo '<li>' . $html->link(__('Open',true),array('controller'=>'events','action'=>'open',$event['Event']['id']),null,null,false). '</li>';
				}
		?>		
	</ul>
	</div>
	
	
</div>